﻿#ifndef STATION_H
#define STATION_H

#include "point.h"
#include <QMetaEnum>

class Station {
   Q_GADGET
public:
   enum StationInfo
   {
      NORMAL,
   };
   Q_ENUM(StationInfo)

   Station();
   Station(int id, Point *point, StationInfo info = NORMAL, double data = 0);

   Point *point() const;
   void setPose(Point *point);

   int id() const;
   void setId(int id);

   StationInfo info() const;
   void setStationInfo(const StationInfo& info);

   double data() const;
   void setData(double value);

private:
   int id_     = 0;                    //工位的id
   Point *pose_ = nullptr;              //工位的坐标
   StationInfo station_info_ = NORMAL; //工位的命令
   double data_ = 0;                   //预留位,特殊情况下可以使用,一般无用.
};
QDebug operator<<(QDebug debug, const Station& p);

#endif // STATION_H
